orwhere in wherehas laravel

29

User::select()->whereHas('student', $function($q) {
        $q->where('name', $value)
          ->orWhere('age', $value2);
    });

Comments

Submit
0 Comments